package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "group_members")
public class RcGroupMembers implements Serializable {

    //已删除
    public static final Integer IS_DELETED_YES = 1;
    //未删除
    public static final Integer IS_DELETED_NO = 0;

    @Id
    private Integer id;

    @Column(name = "groupId")
    private Integer groupid;

    @Column(name = "memberId")
    private Integer memberid;

    @Column(name = "displayName")
    private String displayname;

    private Integer role;

    @Column(name = "isDeleted")
    private Boolean isdeleted;

    @Column(name = "groupNickname")
    private String groupnickname;

    private String region;

    private String phone;

    @Column(name = "WeChat")
    private String wechat;

    @Column(name = "Alipay")
    private String alipay;

    @Column(name = "memberDesc")
    private String memberdesc;

    private Long timestamp;

    @Column(name = "createdAt")
    private Date createdat;

    @Column(name = "updatedAt")
    private Date updatedat;

    private static final long serialVersionUID = 1L;

    public RcGroupMembers(Integer id, Integer groupid, Integer memberid, String displayname, Integer role, Boolean isdeleted, String groupnickname, String region, String phone, String wechat, String alipay, String memberdesc, Long timestamp, Date createdat, Date updatedat) {
        this.id = id;
        this.groupid = groupid;
        this.memberid = memberid;
        this.displayname = displayname;
        this.role = role;
        this.isdeleted = isdeleted;
        this.groupnickname = groupnickname;
        this.region = region;
        this.phone = phone;
        this.wechat = wechat;
        this.alipay = alipay;
        this.memberdesc = memberdesc;
        this.timestamp = timestamp;
        this.createdat = createdat;
        this.updatedat = updatedat;
    }

    public RcGroupMembers() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return groupId
     */
    public Integer getGroupid() {
        return groupid;
    }

    /**
     * @param groupid
     */
    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    /**
     * @return memberId
     */
    public Integer getMemberid() {
        return memberid;
    }

    /**
     * @param memberid
     */
    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }

    /**
     * @return displayName
     */
    public String getDisplayname() {
        return displayname;
    }

    /**
     * @param displayname
     */
    public void setDisplayname(String displayname) {
        this.displayname = displayname == null ? null : displayname.trim();
    }

    /**
     * @return role
     */
    public Integer getRole() {
        return role;
    }

    /**
     * @param role
     */
    public void setRole(Integer role) {
        this.role = role;
    }

    /**
     * @return isDeleted
     */
    public Boolean getIsdeleted() {
        return isdeleted;
    }

    /**
     * @param isdeleted
     */
    public void setIsdeleted(Boolean isdeleted) {
        this.isdeleted = isdeleted;
    }

    /**
     * @return groupNickname
     */
    public String getGroupnickname() {
        return groupnickname;
    }

    /**
     * @param groupnickname
     */
    public void setGroupnickname(String groupnickname) {
        this.groupnickname = groupnickname == null ? null : groupnickname.trim();
    }

    /**
     * @return region
     */
    public String getRegion() {
        return region;
    }

    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return WeChat
     */
    public String getWechat() {
        return wechat;
    }

    /**
     * @param wechat
     */
    public void setWechat(String wechat) {
        this.wechat = wechat == null ? null : wechat.trim();
    }

    /**
     * @return Alipay
     */
    public String getAlipay() {
        return alipay;
    }

    /**
     * @param alipay
     */
    public void setAlipay(String alipay) {
        this.alipay = alipay == null ? null : alipay.trim();
    }

    /**
     * @return memberDesc
     */
    public String getMemberdesc() {
        return memberdesc;
    }

    /**
     * @param memberdesc
     */
    public void setMemberdesc(String memberdesc) {
        this.memberdesc = memberdesc == null ? null : memberdesc.trim();
    }

    /**
     * @return timestamp
     */
    public Long getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp
     */
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return createdAt
     */
    public Date getCreatedat() {
        return createdat;
    }

    /**
     * @param createdat
     */
    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    /**
     * @return updatedAt
     */
    public Date getUpdatedat() {
        return updatedat;
    }

    /**
     * @param updatedat
     */
    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }
}